﻿using Circus.CodeEditor;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ICSharpCode.TextEditor.Tests {
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();

        }

        protected override void OnLoad(EventArgs e) {
            var a = new Circus.CodeEditor.CodeEditor();
            a.Dock = DockStyle.Fill;
            a.ImeMode = System.Windows.Forms.ImeMode.Close;
           // a.WordWrap = true;
            //a.Gutter.ShowBookmarkHints = true;
            //a.Gutter.Visible = true;
            //a.ImeMode = System.Windows.Forms.ImeMode.On;

            Controls.Add(a);

            //SpeedButton aa = new SpeedButton();
            //aa.Text = "asdasdasd";
            //aa.Location = new Point(22, 44);
            //Controls.Add(aa);

            //Circus.CodeEditor.OSUtils.InitializeFlatSB(Handle);

            //Win32.ScrollWindow(Handle, 3, 200, Bounds);
            //Update();

            //  Circus.CodeEditor.OSUtils.ScrollWindow(Handle, 0, 20, this.Bounds);
        }

        protected override void WndProc(ref Message m) {
            base.WndProc(ref m);

            if (m.Msg == 276) {
                Console.WriteLine(m);
            }
        }
    }
}
